package org.dioib.practice.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.security.Timestamp;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName(value = "sys_user") //如果数据库表名与实体类名字不一致需要此注解指定
@NoArgsConstructor
public class SysUser {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Integer age;
    private String sex;
    private String firstName;
    private String lastName;
    private String password;
    private String email;
    private String phone;
    private String address;
    @TableLogic
    private Integer status;
    @TableField(value = "create_time") //如果
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
